#include<bits/stdc++.h>
using namespace std;
#define int long long
const int M=1e4+5;
int n,m,k;
int a,b,c;
signed main(){
	freopen("road.in","r",stdin);
	freopen("road.out","w",stdout);
	cin.sync_with_stdio(0);
	cin.tie(0);
	cin>>n>>m>>k;
	for(int i=1;i<=n;i++)cin>>a>>b>>c;
	for(int i=1;i<=k;i++)cin>>a;
	cout<<0;
	return 0;
}

